package com.example.edwincompose

import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.navigation.compose.rememberNavController
import com.example.edwincompose.ui.MyApp
import com.example.edwincompose.ui.theme.EdwinComposeTheme

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge(statusBarStyle = SystemBarStyle.dark(Color.TRANSPARENT))
        setContent {
            //干什么用
            val navController = rememberNavController()
            EdwinComposeTheme {
                MyApp(navController = navController)
//                SplashRoute()

            }
//            HomeEntry()

        }
    }
}


@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
}